package com.filex.ads.banner;

/**
 * AdSize is the dimension of the ad control.  units is dp
 */
public enum AdSize {

    BANNER_320_50(320, 50),
    BANNER_300_250(300, 250),
    BANNER_320_100(320, 100),
    BANNER_468_60(468, 60),
    BANNER_728_90(728, 90),
    BANNER_HEIGHT_50(-1, 50), // full screen width, height = 50
    BANNER_HEIGHT_90(-1, 90); // full screen width , height = 90

    private final int width;
    private final int height;

    AdSize(int width, int height) {
        this.width = width;
        this.height = height;
    }


    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public boolean isFillWidth() {
        return width < 0;
    }
}
